﻿using Marmat.Forms.Views.Grid;

namespace Marmat.Forms.Views
{
    namespace GridControl
    {
        public class BeforeShowContextMenuEventArgs : GridEventArgs
        {
            private Grid.BeforeShowContextMenuEventArgs _args;

            internal BeforeShowContextMenuEventArgs(Forms.GridControl gridControl, Grid.BeforeShowContextMenuEventArgs args) : base(gridControl)
            {
                this._args = args;
            }

            public System.Windows.Forms.ContextMenuStrip ContextMenu
            {
                get
                {
                    return this._args.ContextMenu;
                }

                set
                {
                    this._args.ContextMenu = value;
                }
            }

            private System.Windows.Forms.ContextMenuStrip _ContextMenu;

            public HitTypeEnum HitType
            {
                get
                {
                    return this._args.HitType;
                }
            }

            internal HitTypeEnum _HitType;

            public bool Cancel
            {
                get
                {
                    return this._args.Cancel;
                }

                set
                {
                    this._args.Cancel = value;
                }
            }
        }
    }
}